//
//  TimerView.h
//  Pods
//
//  Created by guoshiqing on 2017/8/9.
//
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TIMERVIEWSTATE)
{
    TIMERVIEWSTATE_TRANSLUCENT = 1,
    TIMERVIEWSTATE_FULLDISPLAY = 2
};

typedef void(^TimeViewBlock)(void);

@interface TimerView : UIView

// 点击发生的事件
@property (nonatomic, copy) TimeViewBlock blockOfClick;
// 初始化显示文字
@property (nonatomic, copy) NSString *startTitle;

// 设置文字的透明度
- (void)setLabelTransparency:(TIMERVIEWSTATE)state;
// 启动定时器
- (void)startTimer;
// 恢复界面并停止定时器
- (void)resetBtn;
// 当前是否可点击定时器按钮
- (BOOL)canClick;




@end
